package com.yunhe.biz.impl;

import java.util.List;

import com.yunhe.biz.ISubjectBiz;
import com.yunhe.dao.ISubjectDao;

import com.yunhe.entity.Page;
import com.yunhe.entity.Subject;
/**
 * 投票内容biz层实现
 * */
public class SubjectBizImpl implements ISubjectBiz {
	//创建dao层对象
	//ISubjectDao sd = new SubjectDaoImpl();
	private ISubjectDao sd;
	
	public ISubjectDao getSd() {
		return sd;
	}
	public void setSd(ISubjectDao sd) {
		this.sd = sd;
	}
	/**
	 * 条件查询集合
	 * */
	@Override
	public List<Subject> searchSubjects(Subject subject,Page page) {
		
		return sd.searchSubjects(subject,page);
	}
	/**
	 * 条件查询对象
	 * */
	@Override
	public Subject searchSubject(Integer id) {
		
		return sd.searchSubject(id);
	}
	/**
	 * 增加
	 * */
	@Override
	public void addSubject(Subject subject) {
		sd.addSubject(subject);
		
	}
	/**
	 * 删除
	 * */
	@Override
	public void delSubject(Subject subject) {
	sd.delSubject(subject);
		
	}
	/**
	 * 修改
	 * */
	@Override
	public void updateSubject(Subject subject) {
		sd.updateSubject(subject);
		
	}
	@Override
	public Integer searchSubjectCount() {
		
		return sd.searchSubjectCount();
	}
	@Override
	public List<Subject> searchSubjects() {
		
		return sd.searchSubjects();
	}

}
